export default function ({
    listX,
    data
}) {
    return {
        title: {
            text: '近一年统考成绩通过率',
            textStyle: {
                color: '#bcdcff'
            },
            top: 20,
            left: 40,
        },
        grid: {
            top: 80,
            left: 'center',
            width: '80%',
            height: '75%',
        },
        xAxis: {
            type: 'category',
            data: listX,
            axisLabel: {
                textStyle: {
                    color: 'white',
                    fontSize: 15
                }
            }
        },
        yAxis: {
            type: 'value',
            axisLabel: {
                textStyle: {
                    color: 'white',
                    fontSize: 15
                }
            },
            min: 0,
            max: 1,
            axisLabel: {
                formatter: function (val) {
                    return (val) * 100 + '%';
                },
                textStyle: {
                    color: 'white'
                }
            },
        },
        series: [{
            type: 'line',
            data,
            // smooth: true,
        }]
    }
};